package com.springboot.demo.service;


import com.springboot.demo.mapper.MessageInfoMapper;
import com.springboot.demo.model.MessageInfo;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {

    @Autowired
    private MessageInfoMapper messageInfoMapper;
//    @Resource(name="messageInfoMapper")
//    private MessageInfoMapper messageInfoMapper;


    public List<MessageInfo> selectAll(){
        return messageInfoMapper.selectAll();
    }

    public Integer insert(MessageInfo messageInfo){
        return messageInfoMapper.insertMessage(messageInfo);
    }



}
